package com.example.tests;

import com.example.fw.ContactData;
import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * Created with IntelliJ IDEA.
 * User: pshevchenko
 * Date: 11.04.13
 * Time: 15:25
 * To change this template use File | Settings | File Templates.
 */
public class TestContactCreation extends TestBase {

    @Test
    public void shouldCreateContactWithValidData(){
        ContactData contactData = new ContactData()
                .setFirstName("First Name")
                .setLastName("Last Name");
        appManager.getContactHelper().createContact(contactData);
        ContactData savedContact = appManager.getContactHelper().getFirstContact();
        Assert.assertEquals(contactData, savedContact);
    }

}
